Integer factorization

نویسنده

  • Daniel J. Bernstein
چکیده

“The problem of distinguishing prime numbers from composite numbers, and of resolving the latter into their prime factors, is known to be one of the most important and useful in arithmetic,” Gauss wrote in his Disquisitiones Arithmeticae in 1801. “The dignity of the science itself seems to require that every possible means be explored for the solution of a problem so elegant and so celebrated.” But what exactly is the problem? Do we want to distinguish prime numbers from composite numbers? Or do we want to find all the prime factors of composite numbers? These are quite different problems. Imagine, for example, that someone gives you a 10000-digit composite number. It turns out that you can use “Artjuhov’s generalized Fermat test”—the “sprp test”—to quickly write down a reasonably short proof that the number is in fact composite. However, unless you’re extremely lucky, you won’t be able to find all the prime factors of the number, even with today’s state-ofthe-art factorization methods. Do we care whether the answer is accompanied by a proof? Is it good enough to have an answer that’s always correct but not accompanied by a proof? Is it good enough to have an answer that has never been observed to be incorrect? Consider, for example, the “Baillie-Pomerance-Selfridge-Wagstaff test”: if n ∈ 3 + 40Z is a prime number then 2 + 1 and x + 1 are both zero in the ring (Z/n)[x]/(x − 3x + 1); nobody has been able to find a composite n ∈ 3+40Z satisfying the same condition, even though such n’s are conjectured to exist. (Similar comments apply to arithmetic progressions other than 3+40Z.) If both 2 + 1 and x + 1 are zero, is it unacceptable to claim that n is prime? Do we actually want to find all the prime factors of the input? Or are we satisfied with one prime divisor? Or any factorization? More than 70% of all integers n are divisible by 2 or 3 or 5, and are therefore very easy to factor if we’re satisfied with one prime divisor. On the other hand, some integers n have the form pq where p and q are primes; for these integers n, finding one factor is just as difficult as finding the complete factorization. Do we want to be able to find the prime factors of every integer n? Or are we satisfied with an algorithm that gives up when n has large prime factors? Some algorithms don’t seem to care how large the prime factors are: for example, “the Pollard-Buhler-Lenstra-Pomerance-Adleman number-field sieve” is conjectured to find the prime factors of n using exp((64/9 + o(1))(log n)(log log n)) simple operations. Other algorithms are much faster at finding small primes:

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the WZ Factorization of the Real and Integer Matrices

The textit{QIF}  (Quadrant Interlocking Factorization) method of Evans and Hatzopoulos solves linear equation systems using textit{WZ}  factorization. The  WZ factorization can be faster than the textit{LU} factorization  because,  it performs the simultaneous evaluation of two columns or two rows. Here, we present a  method for computing the real and integer textit{WZ} and  textit{ZW} factoriz...

متن کامل

Implementing and Comparing Integer Factorization Algorithms

Integer factorization is an important problem in modern cryptography as it is the basis of RSA encryption. I have implemented two integer factorization algorithms: Pollard’s rho algorithm and Dixon’s factorization method. While the results are not revolutionary, they illustrate the software design difficulties inherent to integer factorization. The code for this project is available at https://...

متن کامل

Particle Swarm Optimization Algorithm for Integer Factorization Problem (IFP)

This paper presents particle swarm optimization (PSO) method to find the prime factors of a composite number. Integer factorization is a well known NP hard problem and security of many cryptosystem is based on difficulty of integer factorization. A particle swarm optimization algorithm for integer factorization has been devised and tested on different 100 numbers. It has been found that the PSO...

متن کامل

A geometric approach to integer factorization

We give a geometric approach to integer factorization. This approach is based on special approximations of segments of the curve that is represented by y = n/x, where n is the integer whose factorization we need.

متن کامل

Integer factorization and Discrete Logarithm problem are neither in P nor NP-complete

Though integer factorization and discrete logarithm problem are both practically and theoretically important, the computational complexity of these problems remained unknown. By comparing integer factorization problem with a problem in P and NP-complete problems, I show that the decision problem version of integer factorization problem is neither in P nor NP-complete. In addition, integer facto...

متن کامل

A New Factorization Method to Factorize RSA Public Key Encryption

The security of public key encryption such as RSA scheme relied on the integer factoring problem. The security of RSA algorithm is based on positive integer N, because each transmitting node generates pair of keys such as public and private. Encryption and decryption of any message depends on N. Where, N is the product of two prime numbers and pair of key generation is dependent on these prime ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006